project "ZuiApp"
if is_pfm("android") then
	kind "SharedLib"
else
	kind "WindowedApp"
end
	language "C++"
	flags { "C++11" }
	includedirs{
		"../",
		"../support",
		"../thirdParty",
		"../thirdParty/SDL2/include",
		"../thirdParty/curl/include/"
	}
	files{"main.cpp",}
	links{
		"ScriptLib",
		"ZuiLib",
		"SDL2",
		"TTF",
		"freetype",
		"zlib",
		"curl",
		"mbedtls",
		"lua",
		"webp",
		"png",
		"unibreak",
		"leveldb",
		"snappy",
	}
	
	if Config.support_video_control then
		links{
			"avcodec",
			"avdevice",
			"avfilter",
			"avformat",
			"avutil",
			"swresample",
			"swscale",
			"VideoControl"
		}
		if is_pfm("windows") then
			libdirs {"../thirdParty/ffmpeg/x86"}
		elseif is_pfm("macosx") then

		elseif is_pfm("linux") then

		end
	end
	
	if is_pfm("windows") then
		links{
			"crypt32",
			"ws2_32",
			"winmm",
			"imm32",
			"version",
			"libvcruntime"
		}
		files{"../thirdParty/SDL2/src/main/windows/*.c","ZuiApp.rc"}
		
	elseif is_pfm("macosx") then
		links{"pthread"}
		files{
			"../thirdParty/SDL2/src/main/dummy/*.c",
			"info.plist",
		}
		links{
			"CoreAudio.framework",
			"CoreVideo.framework",
			"Cocoa.framework",
			"IOKit.framework",
			"CoreFoundation.framework",
			"Carbon.framework",
			"ForceFeedback.framework",
			"AudioToolbox.framework",
		}
	elseif is_pfm("linux") then
		libdirs {"usr/local/lib"}
		links{"pthread"}
		linkoptions { "-Wl,-rpath=.","-fshort-wchar"}
		files{"../thirdParty/SDL2/src/main/dummy/*.c",}
		
	elseif is_pfm("android") then
		links{
			"dl",
			"GLESv1_CM",
			"GLESv2",
			"log",
			"android",
		}
		files{
			"../thirdParty/SDL2/src/main/android/SDL_android_main.c"
		}
	end
	
	